package com.mavenq.fly.business.controller;

import com.mavenq.fly.utils.OkHttpUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/http")
public class OkHttp3ClientController {

    /**
     * 查询任务
     */
    @RequestMapping(value = "/queryTask", method = RequestMethod.GET)
    public void queryTask(){
        String s = OkHttpUtils.get("http://localhost:8081/flow/queryTask");
        System.out.println("完成");
    }

}
